package com.edgarli.detail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import com.edgarli.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edgarli.detail.mapper.TExpenditureMapper;
import com.edgarli.detail.domain.TExpenditure;
import com.edgarli.detail.service.ITExpenditureService;

/**
 * 家庭支出Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Service
public class TExpenditureServiceImpl  extends ServiceImpl<TExpenditureMapper, TExpenditure> implements ITExpenditureService
{
    @Autowired
    private TExpenditureMapper tExpenditureMapper;

    /**
     * 查询家庭支出
     * 
     * @param expenditureId 家庭支出主键
     * @return 家庭支出
     */
    @Override
    public TExpenditure selectTExpenditureByExpenditureId(Long expenditureId)
    {
        return tExpenditureMapper.selectTExpenditureByExpenditureId(expenditureId);
    }

    /**
     * 查询家庭支出列表
     * 
     * @param tExpenditure 家庭支出
     * @return 家庭支出
     */
    @Override
    public List<TExpenditure> selectTExpenditureList(TExpenditure tExpenditure)
    {
        return tExpenditureMapper.selectTExpenditureList(tExpenditure);
    }

    /**
     * 批量删除家庭支出
     * 
     * @param expenditureIds 需要删除的家庭支出主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureByExpenditureIds(Long[] expenditureIds)
    {
        return tExpenditureMapper.deleteTExpenditureByExpenditureIds(expenditureIds);
    }

    /**
     * 删除家庭支出信息
     * 
     * @param expenditureId 家庭支出主键
     * @return 结果
     */
    @Override
    public int deleteTExpenditureByExpenditureId(Long expenditureId)
    {
        return tExpenditureMapper.deleteTExpenditureByExpenditureId(expenditureId);
    }
}
